package com.cfa.service.impl;

import com.cfa.mapper.UmsAdminDao;
import com.cfa.model.UmsAdmin;
import com.cfa.service.UmsAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UmsAdminServiceImpl implements UmsAdminService {
    @Autowired
    private UmsAdminDao umsAdminDao;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return umsAdminDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UmsAdmin record) {
        return umsAdminDao.insert(record);
    }

    @Override
    public int insertSelective(UmsAdmin record) {
        return umsAdminDao.insertSelective(record);
    }

    @Override
    public UmsAdmin selectByPrimaryKey(Long id) {
        return umsAdminDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UmsAdmin record) {
        return umsAdminDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UmsAdmin record) {
        return umsAdminDao.updateByPrimaryKey(record);
    }

    @Override
    public UmsAdmin selectByUsernameAndPassword(UmsAdmin umsAdmin) {
        return umsAdminDao.selectByUsernameAndPassword(umsAdmin);
    }
}
